#include "qtportlist.h"

QtPortList::QtPortList()
{
    QString str;
    for(int i = 0; i < 100; i++)
    {
        str.clear();
        str.append(QString("COM%1").arg(i));
        if(port.openPort(str) == ER_ZADNA_CHYBA)
        {
            list.append(str);
        }
        port.close();
    }
}
